var express = require('express');
var router = express.Router();
var path = require('path');
var articleController = require(path.join(
	process.cwd(),
	"/controller/articleController"
));
/* GET home page. */
router.post('/createArticle', articleController.createArticle);
router.post('/findArticle', articleController.findArticle);
router.delete('/deleteArticle', articleController.deleteArticle);
router.get('/findArticleById', articleController.findArticleById);
router.get('/findAllLabel', articleController.findAllLabel);
router.post('/editArticle', articleController.editArticle);
router.get('/getArticleOption', articleController.getArticleOption);
module.exports = router;